﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace E1C12
{
    class Program
    {
        static void Main(string[] args)
        {
            string texto;
            char ultimo;
            System.Console.WriteLine("Introduzca la palabra: ");
            texto = System.Console.ReadLine();
            char[] cadChar = new char[texto.Length];
            texto.CopyTo(0, cadChar, 0, texto.Length);
            ultimo = cadChar[texto.Length-1];
            for (int i = 1; i < cadChar.Length; i++)
            {
                for (int j = cadChar.Length; j > 1;j--)
                {
                    cadChar[j-1] = cadChar[j - 2];
                }
                cadChar[0] = ultimo;
                System.Console.WriteLine(cadChar);
                ultimo=cadChar[texto.Length-1];         
            }
        }
    }
}
